2019 Fall 40623224 Personal Website

GitExtensions 使用教學 << Previous

Lesson notes

圖片網址的BUG:

原本的:

page = [w.replace('/images/', './../images/') for w in page]
page = [w.replace('/downloads/', './../downloads/') for w in page]

修改的:

page = [w.replace('src="./../images/', 'src="./../images/') for w in page]
page = [w.replace('href="./../downloads/', 'href="./../downloads/') for w in page]

對於頁面中的w進行更換,將 /images/ 換為 ./../images/ ,也就是標籤的src 屬性值是圖像文件的URL,引用該圖像的文件的絕對路徑或相對路徑,而URL 是指向站點內的文件。

對於頁面中的w進行更換,將/downloads/ 換為 ./../downloads/,也就是標籤的href 是等號右邊用來放置要前往的連結網址,而download 屬性規定被下載的超鏈接目標。

兩個都是以 content 為基準的相對目錄設定。


git 常用指令

git add .  新增所有改版內容

git commit -m "提交訊息, 用來辨識版本" 在近端提交改版內容

git push  將近端改版內容推送到遠端

git pull  拉下遠端新版本內容, 在 fossil scm 使用 fossil update

git log  查驗 git 提交推送紀錄

git status  查驗狀態

git 新增提交推送的身分綁定

以 40623224@gm.nfu.edu.tw 註冊帳號為 40623224 為例:

git config --global user.name "40623224"

git config --global user.email "40623224@gm.nfu.edu.tw"

若網路直接連線過慢, 可以透過 proxy 執行 git

git config --global http.proxy http://proxy.kmol.info:3128

以上的 git config 會將設定存入 Y:/home/.gitconfig 檔案中

刪除近端與遠端的 Git 分支.

To delete a local branch

git branch -D the_local_branch

To remove a remote branch

git push origin :the_remote_branch

or

git push origin --delete the_remote_branch

把Onshape吃下去,甚至學習做得更好吃_______柯柏


GitExtensions 使用教學 << Previous